package com.tianbing.adlottery.util;

public class UserSession {

	private long userSysId;

	private String userId;

	private String userNickName;

	private boolean isRegistMember = false;

	private boolean rootUser = false;
	private boolean servantUser = false;
	private boolean supplierUser = false;

	private boolean isLogout = false;

	private boolean checkLoginAuto = false;

	private long managedStoreSysId = -1; // used for retail store

	private long managedHordeSysId = -1; // used for horde ס��С��

	private long managedWebSiteSysId = -1; // used for website

	private long homeHordeSysId = -1;

	private String managedStoreName = "";

	private String managedHordeName = "";

	private String managedWebSiteName = "";

	private String homeHordeName = "";

	private boolean managedStoreOnline = false;

	private boolean managedHordeOnline = false;

	private boolean managedWebSiteOnline = false;

	private long managedCompanySysId = -1; // used for manufactur or supplier

	// company

	private String managedCompanyName = "";

	private boolean managedCompanyOnline = false;

	public UserSession() {
		super();
		// TODO Auto-generated constructor stub
	}

	public String getUserNickName() {
		return userNickName;
	}

	public void setUserNickName(String userNickName) {
		this.userNickName = userNickName;
	}

	public long getUserSysId() {
		return userSysId;
	}

	public void setUserSysId(long userSysId) {
		this.userSysId = userSysId;
	}

	public boolean isRegistMember() {
		return isRegistMember;
	}

	public boolean isManagedCompanyOnline() {
		return managedCompanyOnline;
	}

	public void setManagedCompanyOnline(boolean managedCompanyOnline) {
		this.managedCompanyOnline = managedCompanyOnline;
	}

	public void setRegistMember(boolean isRegistMember) {
		this.isRegistMember = isRegistMember;
	}

	public boolean isRootUser() {
		return rootUser;
	}

	public void setRootUser(boolean isManager) {
		this.rootUser = isManager;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String emailAddr) {
		this.userId = emailAddr;
	}

	public boolean isLogout() {
		return isLogout;
	}

	public void setLogout(boolean isLogout) {
		this.isLogout = isLogout;
	}

	public long getManagedStoreSysId() {
		return managedStoreSysId;
	}

	public boolean isManagedStoreOnline() {
		return managedStoreOnline;
	}

	public void setManagedStoreOnline(boolean managedStoreOnline) {
		this.managedStoreOnline = managedStoreOnline;
	}

	public void setManagedStoreSysId(long userManagedStoreSysId) {
		this.managedStoreSysId = userManagedStoreSysId;
	}

	public boolean isCheckLoginAuto() {
		return checkLoginAuto;
	}

	public void setCheckLoginAuto(boolean checkLoginAuto) {
		this.checkLoginAuto = checkLoginAuto;
	}

	public long getManagedCompanySysId() {
		return managedCompanySysId;
	}

	public void setManagedCompanySysId(long managedCompanySysId) {
		this.managedCompanySysId = managedCompanySysId;
	}

	public String getManagedCompanyName() {
		return managedCompanyName;
	}

	public void setManagedCompanyName(String managedCompanyName) {
		this.managedCompanyName = managedCompanyName;
	}

	public String getManagedStoreName() {
		return managedStoreName;
	}

	public void setManagedStoreName(String managedStoreName) {
		this.managedStoreName = managedStoreName;
	}

	public long getManagedHordeSysId() {
		return managedHordeSysId;
	}

	public void setManagedHordeSysId(long managedHordeSysId) {
		this.managedHordeSysId = managedHordeSysId;
	}

	public String getManagedHordeName() {
		return managedHordeName;
	}

	public void setManagedHordeName(String managedHordeName) {
		this.managedHordeName = managedHordeName;
	}

	public boolean isManagedHordeOnline() {
		return managedHordeOnline;
	}

	public void setManagedHordeOnline(boolean managedHordeOnline) {
		this.managedHordeOnline = managedHordeOnline;
	}

	public long getHomeHordeSysId() {
		return homeHordeSysId;
	}

	public void setHomeHordeSysId(long homeHordeSysId) {
		this.homeHordeSysId = homeHordeSysId;
	}

	public String getHomeHordeName() {
		return homeHordeName;
	}

	public void setHomeHordeName(String homeHordeName) {
		this.homeHordeName = homeHordeName;
	}

	public long getManagedWebSiteSysId() {
		return managedWebSiteSysId;
	}

	public void setManagedWebSiteSysId(long managedWebSiteSysId) {
		this.managedWebSiteSysId = managedWebSiteSysId;
	}

	public String getManagedWebSiteName() {
		return managedWebSiteName;
	}

	public void setManagedWebSiteName(String managedWebSiteName) {
		this.managedWebSiteName = managedWebSiteName;
	}

	public boolean isManagedWebSiteOnline() {
		return managedWebSiteOnline;
	}

	public void setManagedWebSiteOnline(boolean managedWebSiteOnline) {
		this.managedWebSiteOnline = managedWebSiteOnline;
	}

	public boolean isServantUser() {
		return servantUser;
	}

	public void setServantUser(boolean servantUser) {
		this.servantUser = servantUser;
	}

	/**
	 * @return the supplierUser
	 */
	public boolean isSupplierUser() {
		return supplierUser;
	}

	/**
	 * @param supplierUser the supplierUser to set
	 */
	public void setSupplierUser(boolean supplierUser) {
		this.supplierUser = supplierUser;
	}

}
